- if current_user.is_admin? && params[:process] != "shopping_cart"
  %table
    %tr
      %td Order #
      %td Client
      %td Created on
    - @orders.each do |order|
      %tr
        %td
          %a{:href => order_url(order), :title => "Show this order"}= order.id.to_s
          - order_items = 0
          - order.items.each {|item| (order_items += (1 * item.quantity)) if item.quantity}
          = "(#{pluralize(order_items, "item")})"
        %td
          %a{:href => user_url(order.user), :title => "#{order.user.login}'s profile"}= order.user.login
        %td= order.created_at.strftime("%m/%d/%y at %I:%M %p")
        %td
          - form_for order, :html => {:method => 'delete'} do |form|  
            = submit_tag 'delete'
- else
  = render :partial => "orders"